connection_test:mq_connection_test.cpp ../mq_comm/mq_msg.pb.cc ../mq_comm/mq.pb.cc
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf -I ../mq_third/include
channel_test:mq_channel_test.cpp ../mq_comm/mq_msg.pb.cc ../mq_comm/mq.pb.cc
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf -I ../mq_third/include
consumer_test:mq_consumer_test.cpp ../mq_comm/mq_msg.pb.cc
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf
route_test:mq_route_test.cpp ../mq_comm/mq_msg.pb.cc
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf
host_test:mq_host_test.cpp ../mq_comm/mq_msg.pb.cc
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf
msg_test:mq_message_test.cpp ../mq_comm/mq_msg.pb.cc
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest -lprotobuf
binding_test:mq_binding_test.cpp
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest
queue_test:mq_queue_test.cpp
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest
exchange_test:mq_exchange_test.cpp
	g++ -o $@ $^ -std=c++11 -lsqlite3 -lgtest
file_test:mq_file_test.cc
	g++ -o $@ $^ -std=c++11
.PHONY:clean
clean:
	rm -f file_test exchange_test queue_test binding_test msg_test host_test route_test consumer_test channel_test connection_test